<script type="text/ng-template" id="template-blog-add.html">
    <h3>添加文章</h3>

    <div class="container-fluid">
        <div class="row">
          <div class="input-group">
            <span class="input-group-addon">标题</span>
            <input type="text" class="form-control" placeholder="在此输入标题" ng-model="blog.title">
          </div>
        </div>
        
        <div class="row" style="margin-top: 10px; margin-bottom: 10px;">
          <div class="input-group">
            <span class="input-group-addon">author</span>
            <input type="text" class="form-control" placeholder="input author" ng-model="blog.author">
          </div>
        </div>
        
        <div class="row" id="epiceditor-container" style="margin-top: 10px; margin-bottom: 10px;">
        	<textarea class="padding-box" rows="15" id="epiceditor-content" placeholder="在这里编辑正文内容……" ng-model="blog.content"></textarea>
        </div>

        <div class="row">
          <div class="col-sm-offset-2 col-sm-1">
            <button class="btn btn-success" ng-click="submitPost()" ng-disabled="!blog.title">完成</button>
          </div>
          <div class="col-sm-2">
            <a class="btn btn-default" href="{{ back }}">取消</a>
          </div>
        </div>
    </div>
</script>